<input type="password" id="passwd">

<script>
    // This verifies pressing hotkey Alt-F8 once can reveal reveal the password.
    document.getElementById("passwd").focus();
    eventSender.keyDown('a');
    eventSender.keyDown('F8', ['altKey']);
</script>